package cn.wh.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Author wh
 * @Description 事物接口
 * @Date 2023/1/29 16:25
 * @Version 1.0
 **/
public interface Transaction {

    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;

}
